package com.upcontrol.uartagent.entity;

/**
 * Copyright (c) 2017, SuZhou CsjBot. All Rights Reserved.
 * www.csjbot.com
 * <p>
 * Created by 浦耀宗 at 2017/02/09 0009-14:06.
 * Email: puyz@csjbot.com
 */

public class SensorSwitchPacket extends UartPacket {
    byte sensorType;


    public SensorSwitchPacket(byte cmd, byte sensorType) {
        setCmd(cmd);
        this.sensorType = sensorType;
    }

    @Override
    public byte[] getContent() {
        return new byte[]{sensorType};
    }

    @Override
    public void setContent(byte[] content) {

    }
}
